import Vue from 'vue'
import Vuex from 'vuex'
import { Person } from '@/entities/Person'

Vue.use(Vuex)

export interface IStore {
    user: Person
}

const store = new Vuex.Store<IStore>({
  state: {
      user: new Person("", "")
  },
  mutations: {
      setUser(state: IStore, payload: Person) {
          state.user = payload
      }
  },
//   actions: {
//   },
//   modules: {
//   }
})

export {store}